package com.jumper.study.admin.dto.resp;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

public class BannerResp {
    private Long id;

    private String title;

    private String cover;

    private String link;

    private Boolean onself;

    private LocalDateTime updatedAt;

    public BannerResp() {
    }

    public BannerResp(Long id, String title, String cover, String link, Boolean onself, LocalDateTime updatedAt) {
        this.id = id;
        this.title = title;
        this.cover = cover;
        this.link = link;
        this.onself = onself;
        this.updatedAt = updatedAt;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Boolean getOnself() {
        return onself;
    }

    public void setOnself(Boolean onself) {
        this.onself = onself;
    }

    public Long getUpdatedAt() {
        return updatedAt.toEpochSecond(ZoneOffset.UTC);
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
    
}
